 //选项卡切换
 let tabbox = document.querySelectorAll('.news-inner');
 function show(e){
     if(e.target.tagName==="LI"){
         e.preventDefault();
         let indexa=e.target.getAttribute("data-index");
         let tabList= this.querySelectorAll('.options li'),
         conList=this.querySelectorAll('.content');
         tabList.forEach((item,index)=>{
             if (indexa==index) {
                 item.classList.add('show');
                 conList[index].classList.add('show')
             }else{
                 item.classList.remove('show');
                 conList[index].classList.remove('show');
             }
         })
     }
 }

tabbox[0].addEventListener("click",show)
tabbox[1].addEventListener("click",show)
  